
import java.util.*;
public class J03_26 {

 Scanner in = new Scanner(System.in);
 String marry="";
 int money=0;
 double[] tex_per = new double[4];
 
   
 public J03_26()
 {
  tex_per[0] = 0.1;
  tex_per[1] = 0.25;
  tex_per[2] = 0.15;
  tex_per[3] = 0.35;
  
  System.out.println("세금계산 프로그램이니다.");
  System.out.println("결혼유무를 입력하시오: ex) 미혼 or 결혼");
  marry = in.next();
  System.out.println("연봉을 입력핫오: ex) 2000만원일 경우 2000");
  money=in.nextInt();
 
  tex_comp(marry,money);
 }
 
 void tex_comp(String marry, int money)
 {
  if(marry.equals("미혼"))
  {
   
   if(money<3000)
   {
    System.out.println("지급해야 할 세금은"+(int)(money*tex_per[0]));
   }
   else if(money>=3000)
   {
    System.out.println("지급해야 할 세금은"+(int)(money*tex_per[1]));
   }
   
  }
  else if(marry.equals("결혼"))
  {
   if(money<6000)
   {
    System.out.println("지급해야 할 세금은"+(int)(money*tex_per[2]));
   }
   else if(money>=6000)
   {
    System.out.println("지급해야 할 세금은"+(int)(money*tex_per[3]));
   }
   
  }
 }
 
 public static void main(String[]args)
 {
  new J03_26();
 }
} 
